namespace Game.Common.Resources
{
    public class ReadonlyGameResource
    {
        readonly GameResourceType _Type;
        readonly double _Value;
        
        public ReadonlyGameResource(GameResource source)
        {
            _Type = source.Type;
            _Value = source.Value;
        }
        
        public GameResourceType Type
        {
            get { return _Type; }
        }

        public double Value
        {
            get { return _Value; }
        }

        public override string ToString()
        {
            return "" + _Value;
        }
    }
}